﻿using System;
using System.Windows.Forms;

namespace NDK.Motion.Frm
{
    public partial class Dlg_ManualAddCard : Form
    {
        public int CardID { get; set; }
        public int ModuleID { get; set; }//IO 挂载到哪个模块（总线卡对于模块好，脉冲卡对应卡号即和Card ID一样）
        public int StartAxisID { get; set; }
        public int TotalAxisNum { get; set; }
        public int DINum { get; set; }
        public int DONum { get; set; }
        public Dlg_ManualAddCard()
        {
            InitializeComponent();
            btn_Confirm.Visible = true;
        }

        private void btn_Confirm_BtnClick(object sender, EventArgs e)
        {
            CardID = Convert.ToInt32(num_CardNum.Value);
            StartAxisID = Convert.ToInt32(num_StartAxisNum.Value);
            TotalAxisNum = Convert.ToInt32(num_TotalAxisNum.Value);
            DINum = Convert.ToInt32(num_DINum.Value);
            DONum = Convert.ToInt32(num_DONum.Value); 
            //ModuleID = Convert.ToInt32(num_ModuleName.Value);
            DialogResult = DialogResult.OK;
        }

       
    }
}
